// 驱动
const mongoose = require('mongoose');
//  排片集合（schedules）
const schema = new mongoose.Schema({
    movieId: { type: "ObjectId", ref: "movies" },//电影ID
    cinemasId: { type: "ObjectId", ref: "cinemas" },//影院id
    theaterId: { type: "ObjectId", ref: "projectionHall" },//放映厅
    showTime: String,//开演时间
    price: Number,//价格
})
mongoose.model("schedules", schema, "schedules");
